#!/bin/sh
# author Lindsey Simon

cat static/css/goog.css \
    static/css/inlay.css \
    static/css/wuz.css > /tmp/wuz_compiled.css.tmp;
java -jar tools/yuicompressor-2.3.4.jar \
     --type css /tmp/wuz_compiled.css.tmp \
     -o static/css/wuz_compiled.css;
echo "MINIFIED CSS! (static/css/wuz_compiled.css)";
head static/css/wuz_compiled.css;
echo "-------------------------------"

cat static/js/jquery-latest.js \
    static/js/jquery.blockUI.js \
    static/js/wuz.js > /tmp/wuz_compiled.js.tmp
java -jar tools/yuicompressor-2.3.4.jar \
     --type js /tmp/wuz_compiled.js.tmp \
     -o static/js/wuz_compiled.js;
echo "MINIFIED JS! (static/js/wuz_compiled.js)";
head static/js/wuz_compiled.js;
echo "-------------------------------"


echo "ALL DONE!";
echo "";
echo "Now running svn commit...";
svn commit;
echo "DONE!";
echo "";
echo "-------------------------------"

echo "Deploying to App Engine servers...";
appcfg.py update ~/src/wuzhere;
echo "DONE!"
echo "";

